package org.yijiaganxi.common.entity.takeAddress;

import java.util.Date;

import javax.validation.constraints.NotBlank;

import org.yijiaganxi.common.entity.notice.YjgxNotice;
import org.yijiaganxi.common.entity.notice.YjgxNotice.YjgxNoticeBuilder;

import com.baomidou.mybatisplus.annotations.TableField;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhangguowei123
 * @since 2020-08-29
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class YjgxTakeAddress implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;
    @TableField("createDate")
    private Date createDate;
    @TableField("modifyDate")
    private Date modifyDate;
    @TableField("createUser")
    private String createUser;
    @TableField("modifyUser")
    private String modifyUser;
    @TableField("addressDetail")
    @NotBlank(message = "收货地址详情必填")
    private String addressDetail;
    /**
     * 省
     */
    private String province;
    /**
     * 市
     */
    private String city;
    @TableField("openId")
    @NotBlank(message = "openId必填")
    private Long openId;
    @NotBlank(message = "收货人必填")
    private String name;
    @NotBlank(message = "收货人手手机号必填")
    private String mobile;
    /**
     * 0 不是默认地址  1是默认地址
     */
    @TableField("isDetault")
    private Integer isDetault;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getModifyUser() {
        return modifyUser;
    }

    public void setModifyUser(String modifyUser) {
        this.modifyUser = modifyUser;
    }

    public String getAddressDetail() {
        return addressDetail;
    }

    public void setAddressDetail(String addressDetail) {
        this.addressDetail = addressDetail;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public Long getOpenId() {
        return openId;
    }

    public void setOpenId(Long openId) {
        this.openId = openId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Integer getIsDetault() {
        return isDetault;
    }

    public void setIsDetault(Integer isDetault) {
        this.isDetault = isDetault;
    }

    @Override
    public String toString() {
        return "YjgxTakeAddress{" +
        "id=" + id +
        ", createDate=" + createDate +
        ", modifyDate=" + modifyDate +
        ", createUser=" + createUser +
        ", modifyUser=" + modifyUser +
        ", addressDetail=" + addressDetail +
        ", province=" + province +
        ", city=" + city +
        ", openId=" + openId +
        ", name=" + name +
        ", mobile=" + mobile +
        ", isDetault=" + isDetault +
        "}";
    }
}
